<?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Lessons_Lesson3 extends Controller {

    public function action_index() {
        $options = Kohana::config('myconf.options.foo');
        echo $options;
    }

    public function action_index2() {
        I18n::lang('ru');
        $user = 'Edward';

        echo __('Hello, :user', array(':user' => $user));
    }

    public function action_index3() {
        $result = Kohana::message('forms/contact', 'errors.user_not_found');
        print_r($result);
    }

    public function action_index4() {
        //$result = Request::factory('/catalog/')->execute();
        $result = $this->request->redirect('/');
                $this->response->body($result);
    }

}

?>
